<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<form class="form-horizontal buyinfor-form" id="business-info">
	<div class="business-manwife">车贷信息（原）</div>
	<div class="business-padding">
		<table cellpadding="0" cellspacing="0" border="0"
			class="infor-table list-table-detail">
			<tr>
				<td align="right"><label class="control-label np">贷款银行：</label>
				</td>
				<td colspan="3">
					<div class="control-div np" id="loan_loanBankc" name="loanBank">-</div>
				</td>
			</tr>
			<tr>
				<td align="right" class="d2"><label class="control-label np">取整模式：</label>
		        </td>
		        <td class="d2">
		          <div class="control-div np" id="loan_ccol1c" name="ccol1">-</div>
		        </td>
			</tr>
			<tr>
				<td align="right"><label class="control-label np">贷款模式：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_loanTypec" name="loanType">-</div>
				</td>

				<td align="right"><label class="control-label np">购入价：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_carPricec" name="carPrice">-</div>
				</td>
			</tr>
			<tr>
				<td align="right"><label class="control-label np">实际贷款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_loanAmountc" name="loanAmount">-</div>
				</td>
				<td align="right"><label class="control-label np">首付款：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_firstPaymentAmountc" name="loan_firstPaymentAmount">-</div>
				</td>
			</tr>
			<tr class="used-car">
				<td align="right"><label class="control-label np">二手车估价：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_carEstimatePricec" name="carEstimatePrice">-</div>
				</td>

				<td align="right"><label class="control-label np">二手车车龄(月)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_carAgec" name="carAge">-</div>
				</td>
			</tr>

			<tr>
				<td align="right"><label class="control-label np">银行基准利率(%)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_bankRatec" name="bankRate">-</div>
				</td>
				<td align="right"><label class="control-label np">贷款期限：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_loanMonthc" name="loanMonth">-</div>
				</td>
				<td colspan="2" class="used-car"><label
					class="control-label np color-red">注：该二手车贷款期限受限</label></td>
			</tr>

			<tr>
				<td align="right" class="d1 d2"><label class="control-label np"
					class="d1 d2">按揭服务费：</label></td>
				<td class="d1 d2">
					<div class="control-div np" id="loan_servicePricec" name="servicePrice">-</div>
				</td>
				<td align="right" class="d2 d3"><label class="control-label np">签约公司利率(%)：</label>
				</td>
				<td id="companyRateInput" class="d2 d3">
					<div class="control-div np" id="loan_companyRatec" name="companyRate">-</div>
				</td>
			</tr>

			<tr>	
				<td align="right"><label class="control-label np">银行利息（分期手续费）：</label>
				</td>
				<td>
					<div id="loan_bankRateAmountc" name="bankRateAmount" class="control-div">-</div>
				</td>
			</tr>

			<tr class="d1 d2 d3">
				<td align="right"><label class="control-label np">签约贷款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_signLoanAmountc" name="signLoanAmount">-</div>
				</td>

				<td align="right"><label class="control-label np">签约总还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_totalRepaymentAmountc" name="totalRepaymentAmount">-</div>
				</td>
			</tr>
			
			<tr>
				<td align="right" class="BOC"><label class="control-label np warn-red">签约月还款额：</label>
				</td>
				<td>
					<div class="control-div np amountMonthly" id="loan_amountMonthlyc" name="amountMonthly">-</div>
				</td>
				<td align="right" class="d3 BOC"><label class="control-label np warn-red">签约首月还款额：</label>
				</td>
				<td class="d3">
					<div id="loan_firstMonthTotalAmountc" name="firstMonthTotalAmount" class="control-div">-</div>
				</td>
				<td align="right" class="dtj"><label class="control-label">签约首月还款总额：</label>
				</td>
				<td class="dtj">
					<div id="loan_signFirstPaymentAmountc" name="loan_signFirstPaymentAmountc" class="control-div">-</div>
				</td>
				
			</tr>
			<!-- 天津工行新加担保费率 -->
			<tr class="Tjicbc TjicbcPx">	
				<td align="right"><label class="control-label np">签约担保服务费：</label></td>
				<td>
					<div class="control-div np" id="loan_assureAmountc" name="loan_assureAmount">-</div>
				</td>	
				<td align="right"><label class="control-label np">担保费率(%)：</label></td>
				<td>
					<div class="control-div np" id="loan_trialAssureRatec" name="loan_trialAssureRate">-</div>
				</td>	
			</tr>
		
			<tr class="Tjicbc">	
				<td align="right"><label class="control-label np">分期额度：</label></td>
				<td>
					<div class="control-div np" id="loan_stageAmountc" name="loan_stageAmount">-</div>
				</td>	
				<td align="right"><label class="control-label np">分期比例(%)：</label></td>
				<td>
					<div class="control-div np" id="loan_fqblc" name="loan_fqbl">-</div>
				</td>	
			</tr>
			
			<tr class="d3">
				<td align="right"><label class="control-label np">每月本金还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_monthlyPrincipalAmountc" name="monthlyPrincipalAmount">-</div>
				</td>
				<td align="right"><label class="control-label np">首月本金还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_firstMonthAmountc" name="firstMonthAmount">-</div>
				</td>
			</tr>
			<tr class="d3">
				<td align="right"><label class="control-label np">签约每月手续费还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_monthlyFee2c" name="monthlyFee2">-</div>
				</td>

				<td align="right"><label class="control-label np">签约首月手续费还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_firstMonthFee2c" name="firstMonthFee2">-</div>
				</td>
			</tr>
			<tr class="d1 d2 d3 TjicbcHide">	
				<td align="right"><label class="control-label np">签约手续费还款额：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_stagesFee2c" name="loan_stagesFee2c">-</div>
				</td>
				
				<td align="right"><label class="control-label np">签约手续费还款额(补)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_stagesFeec" name="stagesFee">-</div>
				</td>
			</tr>
			<tr class="d3">
				<td align="right"><label class="control-label np">签约首月手续费还款额(补)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_firstMonthFeec" name="firstMonthFee">-</div>
				</td>
				<td align="right"><label class="control-label np">签约每月手续费还款额(补)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_monthlyFeec" name="monthlyFee">-</div>
				</td>
			</tr>
			
		</table>
	</div>

	<div class="baoxian-infor" class="d1 d2">相关验算</div>
	<div class="business-padding" class="d1 d2">
		<table cellpadding="0" cellspacing="0" border="0"
			class="infor-table list-table-detail">
			<tr>
				<td align="right"><label class="control-label np">首付比例(%)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_sfblc" name="loan_sfblc">-</div>
				</td>
				<td align="right"><label class="control-label np">总还款/车价(%)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_zhkcjc" name="zhkcj">-</div>
				</td>

				<td align="right"><label class="control-label np">签约贷款额/车价(%)：</label>
				</td>
				<td>
					<div class="control-div np" id="loan_qyhkcjc" name="qyhkcj">-</div>
				</td>
			</tr>
			<tr>
				<td colspan="2"><label class="control-label np color-red"
					style="display: none; color:#FC1515;" id="zhkcj_showc">已＞80%
						建议调整</label></td>

				<td colspan="2"><label class="control-label np color-red"
					style="display: none; color:#FC1515;" id="qyhkcj_showc">已＞70%
						建议调整</label></td>
			</tr>
		</table>
	</div>
</form>
<script type="text/javascript">
function showLoanDataC(ywBusinessLoan) {
		$('#loanId').val(ywBusinessLoan.replaceId);
	  	if(ywBusinessLoan.loanBank && ywBusinessLoan.loanBank != '') {
	  		$('#loan_loanBankc').text(ywBusinessLoan.loanBankDisplay);
	  	}
		showLoan();
		$('#loan_loanTypec').text(ywBusinessLoan.loanTypeDisplay);
		showType();
		var price = $('#price').val();
		$('#loan_carPricec').text(!price || price == '' ? showNumber(ywBusinessLoan.carPrice) : price);
		$('#loan_carEstimatePricec').text(showNumber(ywBusinessLoan.carEstimatePrice));
		$('#loan_carAgec').text(ywBusinessLoan.carAge);
		$('#loan_loanMonthc').text(ywBusinessLoan.loanMonthDisplay);
		$('#loan_bankRate').text(showNumber(ywBusinessLoan.bankRate ? ywBusinessLoan.bankRate : 0, 4));
		$('#loan_loanAmountc').text(showNumber(ywBusinessLoan.loanAmount));
		$('#loan_companyRatec').text(showNumber(ywBusinessLoan.companyRate ? ywBusinessLoan.companyRate * 100 : 0, 4));
		$('#loan_servicePricec').text(showNumber(ywBusinessLoan.servicePrice));
		$('#ccol1c').text(ywBusinessLoan.ccol1Display);
		
		//结果字段
		$('#loan_signLoanAmountc').text(showNumber(ywBusinessLoan.signLoanAmount));
		$('#loan_totalRepaymentAmountc').text(showNumber(ywBusinessLoan.totalRepaymentAmount));
		$('#loan_bankRateAmountc').text(showNumber(ywBusinessLoan.bankRateAmount));
		$('.amountMonthly').text(showNumber(ywBusinessLoan.amountMonthly));
	    $('#loan_zhkcjc').text(showNumber(ywBusinessLoan.zhkcj * 100));
	    $('#loan_qyhkcjc').text(showNumber(ywBusinessLoan.qyhkcj * 100));
	    warning();
		$('#loan_firstMonthTotalAmountc').text(showNumber(ywBusinessLoan.firstMonthTotalAmount));
		$('#loan_monthlyPrincipalAmountc').text(showNumber(ywBusinessLoan.monthlyPrincipalAmount));
		$('#loan_firstMonthAmountc').text(showNumber(ywBusinessLoan.firstMonthAmount));
		$('#loan_monthlyFeec').text(showNumber(ywBusinessLoan.monthlyFee));
		$('#loan_firstMonthFeec').text(showNumber(ywBusinessLoan.firstMonthFee));
		$('#loan_bankRatec').text(showNumber(ywBusinessLoan.bankRate ? ywBusinessLoan.bankRate * 100 : 0, 4));
		$('#loan_sfblc').text(showNumber(ywBusinessLoan.sfbl *100));
		$('#loan_firstPaymentAmountc').text(showNumber(ywBusinessLoan.firstPaymentAmount));
		$("#loan_monthlyFee2c").text(showNumber(ywBusinessLoan.monthlyFee2));
		$("#loan_stagesFeec").text(showNumber(ywBusinessLoan.stagesFee));
		$("#loan_firstMonthFee2c").text(showNumber(ywBusinessLoan.firstMonthFee2));
		$("#loan_stagesFee2c").text(showNumber(ywBusinessLoan.stagesFee2));
		$("#loan_ccol1c").text(ywBusinessLoan.ccol1Display);
		
		$('#loan_trialAssureRatec').text(showNumber(ywBusinessLoan.trialAssureRate ? ywBusinessLoan.trialAssureRate * 100 : 0, 4));
		$('#loan_assureAmountc').text(showNumber(ywBusinessLoan.assureAmount));
		$('#loan_stageAmountc').text(showNumber(ywBusinessLoan.stageAmount));
		$('#loan_fqblc').text(showNumber(ywBusinessLoan.fqbl ? ywBusinessLoan.fqbl * 100 : 0, 4));
		$('#loan_signFirstPaymentAmountc').text(showNumber(ywBusinessLoan.signFirstPaymentAmount));
	}
	
	
function showLoanDataCEdit(ywBusinessLoanEdit) {
		$('#loanId').val(ywBusinessLoanEdit.replaceId);
	  	if(ywBusinessLoanEdit.loanBank && ywBusinessLoanEdit.loanBank != '') {
	  		$('#loan_loanBankc').text(ywBusinessLoanEdit.loanBankDisplay);
	  	}
		showLoan();
		$('#loan_loanTypec').text(ywBusinessLoanEdit.loanTypeDisplay);
		showType();
		var price = $('#price').val();
		$('#loan_carPricec').text(!price || price == '' ? showNumber(ywBusinessLoanEdit.carPrice) : price);
		$('#loan_carEstimatePricec').text(showNumber(ywBusinessLoanEdit.carEstimatePrice));
		$('#loan_carAgec').text(ywBusinessLoanEdit.carAge);
		$('#loan_loanMonthc').text(ywBusinessLoanEdit.loanMonthDisplay);
		$('#loan_bankRate').text(showNumber(ywBusinessLoanEdit.bankRate ? ywBusinessLoanEdit.bankRate : 0, 4));
		$('#loan_loanAmountc').text(showNumber(ywBusinessLoanEdit.loanAmount));
		$('#loan_companyRatec').text(showNumber(ywBusinessLoanEdit.companyRate ? ywBusinessLoanEdit.companyRate * 100 : 0, 4));
		$('#ccol2').val(showNumber((ywBusinessLoanEdit.ccol2 && ywBusinessLoanEdit.ccol2 != '')? parseFloat(ywBusinessLoanEdit.ccol2) *100 : 0, 4));
		$('#loan_servicePricec').text(showNumber(ywBusinessLoanEdit.servicePrice));
		$('#ccol1').val(ywBusinessLoanEdit.ccol1Display);
		//结果字段
		$('#loan_signLoanAmountc').text(showNumber(ywBusinessLoanEdit.signLoanAmount));
		$('#loan_totalRepaymentAmountc').text(showNumber(ywBusinessLoanEdit.totalRepaymentAmount));
		$('#loan_bankRateAmountc').text(showNumber(ywBusinessLoanEdit.bankRateAmount));
		$('.amountMonthly').text(showNumber(ywBusinessLoanEdit.amountMonthly));
	    $('#loan_zhkcjc').text(showNumber(ywBusinessLoanEdit.zhkcj * 100));
	    $('#loan_qyhkcjc').text(showNumber(ywBusinessLoanEdit.qyhkcj * 100));
	    warning();
		$('#loan_firstMonthTotalAmountc').text(showNumber(ywBusinessLoanEdit.firstMonthTotalAmount));
		$('#loan_monthlyPrincipalAmountc').text(showNumber(ywBusinessLoanEdit.monthlyPrincipalAmount));
		$('#loan_firstMonthAmountc').text(showNumber(ywBusinessLoanEdit.firstMonthAmount));
		$('#loan_monthlyFeec').text(showNumber(ywBusinessLoanEdit.monthlyFee));
		$('#loan_firstMonthFeec').text(showNumber(ywBusinessLoanEdit.firstMonthFee));
		$('#loan_bankRatec').text(showNumber(ywBusinessLoanEdit.bankRate ? ywBusinessLoanEdit.bankRate * 100 : 0, 4));
		$('#loan_sfblc').text(showNumber(ywBusinessLoanEdit.sfbl *100));
		$('#loan_firstPaymentAmountc').text(showNumber(ywBusinessLoanEdit.firstPaymentAmount));
		$("#loan_monthlyFee2c").text(showNumber(ywBusinessLoan.monthlyFee2));
		$("#loan_stagesFeec").text(showNumber(ywBusinessLoan.stagesFee));
		$("#loan_firstMonthFee2c").text(showNumber(ywBusinessLoan.firstMonthFee2));
		$("#loan_stagesFee2c").text(showNumber(ywBusinessLoan.stagesFee2));
		$("#loan_ccol1c").text(ywBusinessLoan.ccol1Display);
		
		$('#loan_trialAssureRatec').text(showNumber(ywBusinessLoan.trialAssureRate ? ywBusinessLoan.trialAssureRate * 100 : 0, 4));
		$('#loan_assureAmountc').text(showNumber(ywBusinessLoan.assureAmount));
		$('#loan_stageAmountc').text(showNumber(ywBusinessLoan.stageAmount));
		$('#loan_fqblc').text(showNumber(ywBusinessLoan.fqbl ? ywBusinessLoan.fqbl * 100 : 0, 4));
		$('#loan_signFirstPaymentAmountc').text(showNumber(ywBusinessLoan.signFirstPaymentAmount));
	}
</script>